

import UIKit

class MusicDataTool: NSObject {

    class func getMusicData(_ result: ([musicModel])->()) {
        
        var musicArr:Array<musicModel> = []
        
        let model1 = musicModel(dict:[:])
        model1.FileName = "http://xuefengmusic.com/Product/app/OldSongs/mp3/EaJeiZgTipNaa6qPy5ygYbhpBmGT6+BrwKoTZC4nT4_GC_cHnsI2snZww5YQNQ4i.mp3"
        model1.Title = "祝你一路顺风"
        model1.LRC = "http://xuefengmusic.com/Product/app/OldSongs/lrc/EaJeiZgTipNaa6qPy5ygYXKqG+oKVJIVS4P1Gi5dYKON3jhpiJ0rVDwwxsktbmgS.lrc"
        model1.ID = "50"
        
        let model2 = musicModel(dict:[:])
        model2.FileName = "http://xuefengmusic.com/Product/app/GeMingGeQu/mp3/yZXTaZxcepN9asV7c2S8EWPQ7mDsrfMScrhMdISql1Q=.mp3"
        model2.Title = "红军不怕远征难"
        model2.LRC = "http://xuefengmusic.com/Product/app/GeMingGeQu/lrc/yZXTaZxcepN9asV7c2S8EWPQ7mDsrfMScrhMdISql1Q=.lrc"
        model2.ID = "51"

        let model3 = musicModel(dict:[:])
        model3.FileName = "http://xuefengmusic.com/Product/app/OldSongs/mp3/9bUYslFFF+kQUN+OE4_KXf+SsshhM2798p9bGgdkxZU=.mp3"
        model3.Title = "牧羊曲"
        model3.LRC = "http://xuefengmusic.com/Product/app/OldSongs/lrc/gLMqDaqE2Y4iVf_ZBh1hmeJFzalkk6Pcmtvl9k9JrKA=.lrc"
        model3.ID = "52"

        musicArr.append(model1)
        musicArr.append(model2)
        musicArr.append(model3)
        // 4. 返回结果
        result(musicArr)
    }
    
}
